package org.dizena.quartz;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
@Slf4j
@MapperScan({"org.dizena.quartz.dao"})
@SpringBootApplication(scanBasePackages = {"org.dizena"})
@EnableFeignClients
@EnableDiscoveryClient
public class StartQuartzApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(StartQuartzApplication.class, args);
        ConfigurableEnvironment env = ctx.getEnvironment();
        String port = env.getProperty("server.port");
        String path = env.getProperty("server.servlet.context-path");
        log.info("http://127.0.0.1:{}{}/doc.html",port,path);
    }
}
